//
//  PosterDetailView.m
//  Mtime
//
//  Created by Mac on 15/8/1.
//  Copyright (c) 2015年 wxk. All rights reserved.
//

#import "PosterDetailView.h"

@implementation PosterDetailView

- (void)awakeFromNib {

    [super awakeFromNib];
}

- (void)setModel:(HomeModel *)model {

    _model = model;
    
    [_imageV setImageWithURL:[NSURL URLWithString:model.img]];

    [_title setText:model.titleCn];
    [_titleEN setText:model.titleEn];
    
    
//    float rating = [model.ratingFinal floatValue];
    
    _ratingView.rating = [model.ratingFinal floatValue];
    
    [_rating setText:[NSString stringWithFormat:@"%.1f",[model.ratingFinal floatValue]]];
    
    
}


@end
